import request from '@/utils/request'

export default {
  getCourseSubject() {
    return request({
        url: `/edu/coursefront/getCourseSubject`,
        method: 'get'
    })
  },
  getCourseFrontList(current,courseQuery) {
    return request({
      url: `/edu/coursefront/${current}`,
      method: 'post',
      data: courseQuery
    })
  },
  getTeacherInfoById(courseId) {
    return request({
        url: `/edu/coursefront/getTeacherInfoById/${courseId}`,
        method: 'get'
    })
  },
  getCourseInfo(courseId) {
    return request({
      url: `/edu/coursefront/courseInfo/${courseId}`,
      method: 'get'
    })
  },
  getCourse(courseId) {
    return request({
      url: `/edu/coursefront/course/${courseId}`,
      method: 'get'
    })
  },
  getChapterVo(courseId) {
    return request({
      url: `/edu/coursefront/getChapterById/${courseId}`,
      method: 'get'
    })
  },
  getIsBuyCourse(memberId,courseId) {
    return request({
      url: `/serviceorder/front/order/getIsBuyCourse/${memberId}/${courseId}`,
      method: 'get'
    })
  }
}